package com.sk.bilibili.mapper;

import com.sk.api.annotations.Mapper;
import com.sk.bilibili.bean.Live;
import com.sk.bilibili.dto.Res;

import java.util.List;

import io.reactivex.Observable;
import retrofit2.http.GET;
import retrofit2.http.Query;

@Mapper
public interface LiveMapper {

    @GET("live/getRecommend")
    Observable<Res<List<Live>>> getRecommend(@Query("page") Integer page,@Query("size") Integer size);

    @GET("live/getTypeLive")
    Observable<Res<List<Live>>> getTypeLive(@Query("liveTypeId") Integer liveTypeId);

    @GET("live/getTypeLivePage")
    Observable<Res<List<Live>>> getTypeLivePage(@Query("page") Integer page,@Query("liveTypeId") Integer liveTypeId);

    @GET("live/getLiveUrl")
    Observable<Res<String>> getLiveUrl(@Query("roomId")Integer roomId);

}